function goto1(url,trans){
	//hint();
	document.menuForm.action=url
	document.menuForm.transName.value=trans
	document.menuForm.target="mainFrame"	
	document.menuForm.submit();
}


/***新的MENU***/
var LastLeftID = "";

function quickmenuToggle(obj){
	var i;
	var smsum;
	var elementID=obj.id;

	   var obj1 = document.getElementById("nav").getElementsByTagName("li");
	  for (var i=0; i<obj1.length; i++) {
		  
		  obj1[i].getElementsByTagName("a")[0].className="nomal";
		
	  }		 
	obj.getElementsByTagName("a")[0].className="chang";
	
}

function menuToggle(obj){
	var i;
	var smsum;
	var elementID=obj.id;
	var obj1 = document.getElementById("nav").getElementsByTagName("li");
	  for (var i=0; i<obj1.length; i++) {
		  obj1[i].getElementsByTagName("a")[0].className="nomal";
	  }
		obj.getElementsByTagName("a")[0].className="ag";
}

function DoMenu(emid)
{
 var obj = document.getElementById(emid); 
 obj.className = (obj.className.toLowerCase() == "expanded"?"collapsed":"expanded");
 if((LastLeftID!="")&&(emid!=LastLeftID)) //关闭上一个Menu
 {
  document.getElementById(LastLeftID).className = "collapsed";
 }
 LastLeftID = emid;
}

function GetMenuID()
{

 var MenuID="";
 var _paramStr = new String(window.location.href);

 var _sharpPos = _paramStr.indexOf("#");
 
 if (_sharpPos >= 0 && _sharpPos < _paramStr.length - 1)
 {
  _paramStr = _paramStr.substring(_sharpPos + 1, _paramStr.length);
 }
 else
 {
  _paramStr = "";
 }
 
 if (_paramStr.length > 0)
 {
  var _paramArr = _paramStr.split("&");
  if (_paramArr.length>0)
  {
   var _paramKeyVal = _paramArr[0].split("=");
   if (_paramKeyVal.length>0)
   {
    MenuID = _paramKeyVal[1];
   }
  }
 }
 
 if(MenuID!="")
 {
  DoMenu(MenuID)
 }
}

function gotoLink(url)
{
    
//    var doc = top.view.document;
//    doc.open();
//    doc.write("<html>");
//    doc.write("<head>");
//    doc.write("<link rel='stylesheet' type='text/css' href='${def:context}/default.css' />");
//    doc.write("</head>");
//    doc.write("<body>");
//    doc.write("<br><br>");
//    //doc.write("<center>");
//    //doc.write("<div class='alert' style='width:40%; padding:10px; text-align:center;font-family:Arial;font-size:14pt;font-weight:bold;color:gray'>请稍侯......</div>");
//    //doc.write("</center>");
//    doc.write("</body>");
//    doc.write("</html>");
//    doc.close();

 /*设定是否禁止导航按钮回退*/
/*    var history_forbiden = true;   
    if(history_forbiden)
        top.view.window.location.replace(url);
    else
        top.view.window.location=url;
        */
//alert("在主显示去显示列表");
    top.view.window.location = url;
    
}
function exitFrame(url)
{
    //avoid displaying this page inside frames
    if (top.frames.length!=0) {
        if (window.location.href.replace)
            top.location.replace(url);
        else
            top.location.href=url;
    }
}